package com.zhn.evsi.controller.Evsi;

import cn.hutool.core.util.ObjectUtil;
import com.zhn.evsi.common.Result;
import com.zhn.evsi.domain.dto.evsi.EvsiFitDTO;
import com.zhn.evsi.exception.CustomException;
import com.zhn.evsi.service.IEvsiFitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiSort;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "装配管理")
@ApiSort(value = 8)
@RequestMapping("/Evsi/fit")
@RestController
public class EvsiFitController {

    @Autowired
    private IEvsiFitService fitService;

    @ApiOperation("舰船配置查询")
    @ApiOperationSupport(order = 1)
    @GetMapping("/fittings")
    public Result fittings(){
        return Result.success(fitService.fittings());
    }
}
